<%--
  Created by IntelliJ IDEA.
  User: 君未洋
  Date: 2021/5/4
  Time: 11:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>choose</title>
</head>
<body>
<%
    request.setAttribute("number", 2);
%>
<c:choose>
    <c:when test="${number==1}">周一</c:when>
    <c:when test="${number==2}">周二</c:when>
    <c:when test="${number==3}">周三</c:when>
    <c:when test="${number==4}">周四</c:when>
    <c:when test="${number==5}">周五</c:when>
    <c:when test="${number==6}">周六</c:when>
    <c:when test="${number==7}">周日</c:when>

    <c:otherwise>其他</c:otherwise>
</c:choose>
</body>
</html>
